/*
 * PlainDocument.h  0.4.0 / Dec 04, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef PLAINDOCUMENT_H
#define PLAINDOCUMENT_H

#include "Cute4jSwing.h"

#include "QTextDocumentAdapter.h"

// PlainDocument Class. --------------------------------------------------------

/*!
 * \brief Plain Document.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT PlainDocument : public QTextDocumentAdapter
{
public:
  PlainDocument(TextDocumentDelegate *documentDelegate);
public:
  virtual QString getText() const;
  virtual void setText(const QString &text);
  virtual void appendText(const QString &text);
};

#endif // PLAINDOCUMENT_H
